package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.pojo.dto.NodeSearchDto;
import com.heima.pojo.entity.Node;
import com.heima.pojo.vo.NodeDetailVo;
import com.heima.pojo.vo.NodeVo;
import com.heima.pojo.vo.PageResponseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface NodeMapper extends BaseMapper<Node> {

    Page<NodeVo> searchNode(Page<NodeVo> page, @Param("dto") NodeSearchDto dto);

    List<NodeDetailVo> selectNodeDetailById(Long nodeId);
}
